Method for embedding information in an image

ABSTRACT

A method for producing a composite image that includes a first and second image. The second image embeds information in the first image in a manner that the second image will change in appearance when the first and second images are scanned or photocopied.

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] Reference is made to commonly assigned copending patent application Docket No. F-285 filed herewith entitled “Method For Reading Information That Has Been Embedded In An Image” in the names of Robert A. Cordery, Claude Zeller, Donald G. Mackay and William A. Brosseau; and Docket No. F-417 filed herewith entitled “Method For Utilizing A Fragile Watermark For Enhanced Security” in the names of Claude Zeller, Donald G. Mackay, William Kilmartin, William A. Brosseau, James Euchner and Robert A. Cordery (Docket No. F-417 claims the benefit of the filing date of U.S. Provisional Application No. 60/283,565 filed Apr. 13, 2001, which is owned by the assignee of the present Application).

FIELD OF THE INVENTION

[0002] The subject invention relates to a method for printing images that contain certain information and, more particularly, to a method that detects when the printed images containing certain information are copied.

BACKGROUND OF THE INVENTION

[0003] Images such as postal indicia have been printed by postage meters to evidence that the appropriate postage has been affixed to the mailpiece. A typical postal indicia includes fixed elements such as city name, state, a graphic, meter serial number, etc., and variable information such as date, postage amount, an encrypted number, etc. Postal Indicia have been printed by flat bed printers and rotary printers without encryption and ink jet printers with encryption. The improvement of photocopying, printing and scanning equipment have made it easier to commit fraud by copying postal indicia.

[0004] Currently, ticketing companies are giving purchasers the option of printing their electronic tickets at home, using ordinary paper, a personal computer printer and an Internet connection. One of the problems in allowing people to print tickets at home is how to ensure that the tickets are not counterfeited. One of the solutions suggested to solve the foregoing problem is to print an encrypted bar code on the ticket. Unfortunately, a printed ticket on ordinary paper with an encrypted bar code can be photocopied, and the seller of the ticket will be unable to distinguish between the original, genuine ticket and the photocopied ticket.

SUMMARY OF THE INVENTION

[0005] This invention overcomes the disadvantages of the prior art by providing a method that makes it more difficult to copy images. The invention provides a method that detects when an image is copied or scanned to reduce the production of fraudulent images. Information in the form of a plurality of numbers and/or characters (in a normal or encrypted form) that represents some fact, i.e., date that an indicia was affixed to a mail piece, zip code, etc., is going to be embedded in an image in a manner that the embedded information will change in appearance when the image is scanned or photocopied.

[0006] The foregoing is accomplished by converting the plurality of numbers into a two-dimensional bar code that is repeated m times in the horizontal direction and n times in the vertical direction in order to produce redundancy so that the two-dimensional bar code will be easier to recover. The two-dimensional bar codes are then filtered by a spreading algorithm that scrambles the information represented by the two-dimensional bar code. Each scrambled two-dimensional bar code will be the same size as the two-dimensional bar code that it replaces. Then each scrambled two-dimensional bar code will be split into two equal parts, i.e., a first part and a second part. Each first part and each second part will contain an upper portion and a lower portion. The upper portion of the first part and the lower portion of the second part will be the same as the respective upper and lower parts of the scrambled two-dimensional bar code. The lower portion of the first part and the upper portion of the second part will be white or empty space. Spread spectrum-like techniques will then be applied to the first part and second part to further hide the information in the first and second parts and to make it easier to recover the information in the first and second parts. Then the plurality of first and second parts will be expanded over the entire image that is going to be printed. At each location in which information from the plurality of first parts is going to be printed, the printed information will be a printed pixel of a specified dimension, i.e., 2×2 pixels. At each location in which information from the plurality of second parts is going to be printed, the printed information will be a printed pixel of a specified dimension that differs from the pixels printed in the first parts, i.e., 3×3 pixels. The plurality of first and second parts will then be printed over the image to produce an image containing hidden information that is difficult to copy. When the image and plurality of first and second parts are scanned and printed and/or photocopied, the printed pixels of specified dimensions in the first and second parts will be distorted in the bit map. In addition, the scanned pixels will not align perfectly with the printed pixels. When the scanned image is converted back to a bit map, this usually increases the percentage of black pixels. Thus, the combination of optical effects, digitations effects and ink spread increase the size of the black areas. The change in size of the printed pixels of specified dimensions in the first and second parts may be observable by the human eye and/or a scanner. Thus, one will be able to determine when an image is copied.

BRIEF DESCRIPTION OF THE DRAWINGS

[0007]FIG. 1 is a drawing of a postal indicia.

[0008]FIG. 2 is a drawing of a two-dimensional bar code that represents in coded form the information contained in material 14 and other information.

[0009]FIG. 3 is a drawing of portion 25 of bar code 22.

[0010]FIG. 4 is a drawing of image 27 consisting of bar code 22 repeated m times in the horizontal direction and n times in the vertical direction.

[0011]FIG. 5 is a drawing showing the condensing of the six bar codes 22 into one bar code image 28.

[0012]FIG. 6 is a drawing of a mathematical filter 29 that has the same dimensions as bar code image 28 of FIG. 5.

[0013]FIG. 7 is the resulting image 35 of bar code image 28 (FIG. 5) filtered by filter 29 (FIG. 6).

[0014]FIG. 8 is a drawing of right half 39 of FIG. 7.

[0015]FIG. 9 is a drawing of left half 38 of FIG. 7.

[0016]FIG. 9A is a drawing of left half 38 of FIG. 7 divided into section 43 and section 44.

[0017]FIG. 9B is a drawing showing the spreading algorithm applied to section 43 of FIG. 9A.

[0018]FIG. 10 is a drawing of an image 40 when a spreading algorithm is applied to left half 38.

[0019]FIG. 11 is a drawing of an image 41 when a spread spectrum-like algorithm is applied to right half 9.

[0020]FIG. 12 shows a detailed step of the expansion process.

[0021]FIG. 13 is a drawing of image 40 expanded to image 56.

[0022]FIG. 14 is a drawing of image 41 expanded to image 57.

[0023]FIG. 15 is a drawing of images 40 and 41 embedded in the graphical material portion of indicia 11 of FIG. 1.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS OF THE INVENTION

[0024] Referring now to the drawings in detail, and more particularly to FIG. 1, the reference character 11 represents a postal indicia. Postal indicia 11 includes graphic material in the form of an eagle 12 and stars 13 and alphanumeric material 14. Indicia 11 also contains a dollar amount 15; the date 16 that postal indicia 11 was affixed to mail piece 17; the zip code where mail piece 17 was mailed from 18; the postal meter serial number 19; a security code 20; the class of mail 55; and the country 21.

[0025]FIG. 2 is a drawing of a two-dimensional bar code 22 that represents in coded form the information contained in material 14 and other information. Bar code 22 comprises a plurality of black modules 23 and white modules 24. Black modules 23 represent a “zero”, and white modules 24 represent a “one”. Portion 25 of bar code 22 represents the zip code 18 of FIG. 1 with the least significant bit on the left.

[0026]FIG. 3 is a drawing of portion 25 of bar code 22. The binary representation of portion 25, i.e., zip code 18, is shown by a plurality of ones and zeros 26.

[0027]FIG. 4 is a drawing of image 27 consisting of bar code 22 repeated m times in the horizontal direction and n times in the vertical direction, where m=3 and n=2. Thus, redundancy is applied by repeating the image of bar code 22 three times in the horizontal direction and two times in the vertical direction.

[0028]FIG. 5 is a drawing showing the condensing of the six bar codes 22 into one bar code image 28.

[0029]FIG. 6 is a drawing of a mathematical filter 29 that has the same dimensions as bar code image 28 of FIG. 5, i.e., a length of 60 pixels and a width of 16 pixels. Filter 29 may be any arrangement of black pixels 30 and white pixels 31 as long as filter 29 contains the same number of black pixels 30 having a value of “0”, and white pixels 31 having a value of “1”. Filter 29 may be a pseudo random stream of bits such as the output of a cryptographic algorithm like the Digital Encryption Standard (DES). Alternatively, filter 29 may be an exclusive—or of a function of the X coordinate and a function of the Y coordinate as shown in FIG. 6. Filter 29 causes a pixel by pixel exclusive—or reversal—process when it filters an image. Thus, when the pixel of the filter is white, there will be a reversal between the image and the calculated filter image; and when the pixel of the filter is black, there will be no change between the image and the calculated filter image. The following chart shows the calculated filter value for different color image pixels and different color filter pixels. COLOR OF PIXEL COLOR OF PIXEL IN CALCULATED FILTER IMAGE FILTER IMAGE White = 1 White = 1 Black = 0 Black = 0 White = 1 White = 1 White = 1 Black = 0 White = 1 Black = 0 Black = 0 Black = 0

[0030] The filter 29 shown in FIG. 6 is applied to the bar code image 28 shown in FIG. 5 to make the redundant bar code image 28 information invisible. The filter algorithm implementation is a pixel by pixel exclusive—or operation between the image and the filter.

[0031]FIG. 7 is the resulting image 35 of bar code image 28 (FIG. 5) filtered by filter 29 (FIG. 6). Resulting image 35 is a matrix of sixty horizontal pixels by sixteen vertical pixels that include white pixels 36 and black pixels 37. Image 35 has a left half 38 and a right half 39. The number of pixels in half 38 equals the number of pixels in right half 39. If one would compare bar code image 28 with resulting image 35, one would observe that bar code image 28 does not correlate with resulting image 35. One would also note that the periodic structure of bar code image 28 is no longer visible in resulting image 35.

[0032]FIG. 8 is a drawing of right half 39 of FIG. 7.

[0033]FIG. 9 is a drawing of left half 38 of FIG. 7.

[0034]FIG. 9A is a drawing of left half 38 of FIG. 7 divided into section 43 and section 44. Section 43 is shown having black and white pixels. Section 44 is shown having gray and white pixels.

[0035]FIG. 9B is a drawing showing the spreading algorithm applied to section 43 of FIG. 9A. The spreading algorithm will be described in the description of FIG. 10. Black pixels are shown at 45, and white pixels are shown at 46. Section 43 has a region 50.

[0036]FIG. 10 is a drawing of an image 40 when a spread spectrum-like algorithm is applied to left half 38. The spreading algorithm is used to increase the hiding capability and optimal recovery of the information hidden in image 40. The spreading algorithm disperses the information, i.e., white pixels and black pixels, in a manner that neighboring pixels in image 38 will not be close together in image 40. In image processing a spreading algorithm essentially transforms an image into another image by randomizing the rows and columns indexes.

[0037] The following is an example of a spreading algorithm: ${{FIN}\left( {{NK},\quad {KK},\quad k} \right)}\quad:={{mod}\left\lbrack {{{{KK} \cdot {{mod}\left( {k,\quad {{ceil}\left( \frac{NK}{KK} \right)}} \right)}} + {{{floor}\left\lbrack \frac{k}{{ceil}\left( \frac{NK}{KK} \right)} \right\rbrack} \cdot {{mod}\left( {{{KK} \cdot {{ceil}\left( \frac{NK}{KK} \right)}},\quad {NK}} \right)}}},\quad {NK}} \right\rbrack}$ ${{INX}\quad ({NK})}\quad:=\left| \begin{matrix} {{{for}\quad {KK}} \in \quad {{1\quad \ldots \quad {NK}} - 1}} \\ \left| \begin{matrix} {{{for}\quad k}\quad \in {{0\quad \ldots \quad {NK}} - 1}} \\ \left| \begin{matrix} \left. {IN}_{k,{KK}}\leftarrow{{FIN}\left( {{NK},\quad {KK},\quad k} \right)} \right. \\ \left. K_{k}\leftarrow k \right. \end{matrix} \right. \\ \left. {MN}_{KK}\leftarrow{\Phi \left( {{2 \cdot \frac{{mean}\left( {IN}^{< {KK} >} \right)}{{NK} - 1}} - 1} \right)} \right. \\ \left. \left. {COR}_{KK}\leftarrow \right. \middle| {{corr}\left( {{IN}^{< {KK} >},\quad K} \right)} \middle| {{\cdot {MN}_{KK}} + 1 - {MN}_{KK}} \right. \\ \left. {COR}_{0}\leftarrow 1 \right. \\ \left. {MIN}\leftarrow{\min \quad ({COR})} \right. \end{matrix} \right. \\ \left. {SKK}\leftarrow\overset{\rightarrow}{\left\lbrack {\left( {\Phi \left( {{MIN} - {COR}} \right)} \right) \cdot K} \right\rbrack} \right. \\ \left. {KKO}\leftarrow{\max \quad ({SKK})} \right. \\ {{{for}\quad k} \in {{0\quad \ldots \quad {NK}} - 1}} \\ \left. {INDX}_{k}\leftarrow{{FIN}\left( {{NK},\quad {KKO},\quad k} \right)} \right. \\ {INDX} \end{matrix} \right.$

[0038] NK is the size of the row or column, and k is the index of the row or column in the original image.

[0039] FIN(NK,KK,k) returns a permutation of the index k. The value of KK is chosen to minimize the correlation between the index and the permuted index.

[0040] The routine INX(NK) returns the selected permutation INDX.

[0041] INDX_(k) is the chosen permuted index in the spread image.

[0042]FIG. 11 is a drawing of an image 41 when a spreading algorithm is applied to right half 39. The spreading algorithm is used to increase the hiding capability and optimal recovery of the information hidden in image 41. The spreading algorithm disperses the information, i.e. white pixels and black pixels in a manner that the neighboring pixels in image 39 will not be close together in image 41. In image processing, a spreading algorithm essentially transforms an image into another image by randomizing the rows and columns indexes. An example of a spreading algorithm is shown in the description of FIG. 10.

[0043]FIG. 12 is a drawing of an enlarged view of region 50 of section 43 and region 50 expanded into region 51. Black pixels are shown at 45 and white pixels are shown at 46. One of the purposes of expanding an image is to control the lightness of the background and to provide a grid to enable a low resolution reading.

[0044]FIG. 13 is a drawing of image 40 expanded to image 56. Black pixels are shown at 60, and white pixels are shown at 61. A cluster of 2×2 dots 60 is formed from one black pixel in image 56. No cluster is printed at location 61 to represent a white pixel in image 56.

[0045]FIG. 14 is a drawing of image 41 expanded to image 57. Black pixels are shown at 62, and white pixels are shown at 63. A cluster of 3×3 dots 62 is formed from one black pixel in image 57. No cluster is printed at location 63 to represent a white pixel in image 57. It would be obvious to one skilled in the art that many differently sized and shaped clusters may be used.

[0046]FIG. 15 is a drawing of images 40 and 41 embedded in the graphical material portion of indicia 11 of FIG. 1. Image 40 black pixels are shown at 67 and image 41 black pixels are shown at 65. The manner in which images 40 and 41 change in appearance when they are photocopied, is described in FIG. 17 of copending patent application Docket No. F-285 filed herewith entitled “Method For Reading Information That Has Been Embedded In An image” herein incorporated by reference.

[0047] The above specification describes a new and improved method for embedding information in an image. It is realized that the above description may indicate to those skilled in the art additional ways in which the principles of this invention may be used without departing from the spirit. Therefore, it is intended that this invention be limited only by the scope of the appended claims. 

What is claimed is:
 1. A method of producing a background image representing data comprising the steps of: producing a first encoding of the data into a first binary array; producing a second encoding of the data into a second binary array; representing the first binary array as a first set of modules of a first size on nodes of a first lattice; representing the second binary array as a second set of modules of a second size, which is smaller than the first size on nodes of a second lattice; combining the first and second sets of modules; and printing the first and second sets of modules.
 2. The method claimed in claim 1, further including the step of: superimposing graphic material on the modules before printing.
 3. The method claimed in claim 2, wherein the graphic material is a postal indicia.
 4. The method claimed in claim 1, wherein the modules on the first lattice and the modules on the second lattice do not overlap.
 5. A method for producing a composite image comprising the steps of: producing a first image and a second image that embeds information in the first image; representing information contained in the second image by a two-dimensional bar code; filtering the two-dimensional bar code with a spreading algorithm that scrambles the information represented by the two-dimensional bar code; splitting the filter bar code into an equal first part and an equal second part, wherein each first part and each second part will contain an upper portion and a lower portion such that the lower portion of the first part and the upper portion of the second part will be white or empty space; applying a spreading algorithm to the first part and second part to further hide the information in the first and second parts; expanding the first and second parts over the entire image that is going to be printed; and printing the first and second parts over the first image to produce an image containing hidden information.
 6. The method claimed in claim 5, wherein the first image is a postal indicia.
 7. The method claimed in claim 5, wherein the first and second images are printed on a medium.
 8. The method claimed in claim 5, wherein: at each location in which information from the first parts is going to be printed, the printed information will be a printed pixel of a specified dimension, and at each location in which information from the plurality of second parts is going to be printed, the printed information will be a printed pixel of a specified dimension that differs from the pixels printed in the first parts.
 9. The method claimed in claim 5, wherein when the first and second images are scanned and printed, the printed pixels of specified dimensions in the first and second parts will become larger.
 10. The method claimed in claim 9, wherein the change in size of the printed pixels of specified dimensions in the first and second parts is detectable by the unaided human eye.
 11. The method claimed in claim 9, wherein the change in size of the printed pixels of specified dimensions in the first and second parts is detectable by a scanner.
 12. The method claimed in claim 5, further including the steps of: photocopying the first and second images; and noticing a change in appearance of the second image.
 13. The method claimed in claim 5, further including the steps of: scanning the first and second images; and noticing a change in appearance of the second image.
 14. The method claimed in claim 5, wherein when the first and second images are photocopied, the printed pixels of specified dimensions in the first and second parts will become larger.
 15. The method claimed in claim 14, wherein the change in size of the printed pixels of specified dimensions in the first and second parts is detectable by the unaided human eye.
 16. The method claimed in claim 14, wherein the change in size of the printed pixels of specified dimensions in the first and second parts is detectable by the scanner.
 17. The method claimed in claim 5, wherein the first image will not change in appearance when the first image is scanned or photocopied. 